package cn.cy.domain;

import lombok.Data;

/**
 * @Author: Xucranger
 * @Date: 22/5/2 19:36
 */

@Data
public class StepResult {


    private Integer code;
    private String msg;
    private String status;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public StepResult(Integer code, String msg, String status) {
        this.code = code;
        this.msg = msg;
        this.status = status;
    }


    public static StepResult succ(String status){
        return new StepResult(200,status+"操作成功！",status);
    }
    public static StepResult fail(String status){
        return new StepResult(400,status+"操作失败",status);
    }
}
